package com.lywz.biz.common.entity.city;


import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * TCityTourismOrganization entity. @author MyEclipse Persistence Tools
 */
@Entity
@NamedQueries({
@NamedQuery(name="city.queryInsideOrg",query="from CityTourismOrganization org where org.cityId=:cityId and org.type=true"),
@NamedQuery(name="city.queryOutsideOrg",query="from CityTourismOrganization org where org.cityId=:cityId and org.type=false")        
})
@Table(name = "T_City_Tourism_Organization", catalog = "db_GZTour")
public class CityTourismOrganization implements java.io.Serializable {

    // Fields    
    private static final long serialVersionUID = 6043049393826711220L;

    private Integer id;
    //城市ID
    private Short cityId;
    //城市名称
    private String cityName;
    //旅游机构类别（TRUE 市内  FALSE 市外）
    private Boolean type;
    //机构名称
    private String name;
    //机构所属地区
    private String area;
    //机构电话
    private String telephone;
    //机构邮政编码
    private String postcode;
    //机构地址
    private String address;

    // Constructors

    /** default constructor */
    public CityTourismOrganization() {
    }

    /** full constructor */
    public CityTourismOrganization(Short cityId, String cityName, Boolean type, String name, String area,
            String telephone, String postcode, String address) {
        this.cityId = cityId;
        this.cityName = cityName;
        this.type = type;
        this.name = name;
        this.area = area;
        this.telephone = telephone;
        this.postcode = postcode;
        this.address = address;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "city_id", nullable = false)
    public Short getCityId() {
        return this.cityId;
    }

    public void setCityId(Short cityId) {
        this.cityId = cityId;
    }
    
    @Column(name = "city_name", nullable = false, length = 30)
    public String getCityName(){
        return this.cityName;
    }
    public void setCityName(String cityName){
        this.cityName = cityName;
    }

    @Column(name = "type", nullable = false)
    public Boolean getType() {
        return this.type;
    }

    public void setType(Boolean type) {
        this.type = type;
    }

    @Column(name = "name", nullable = false, length = 50)
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "area", nullable = false, length = 50)
    public String getArea() {
        return this.area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Column(name = "telephone", nullable = false, length = 20)
    public String getTelephone() {
        return this.telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    @Column(name = "postcode", nullable = false, length = 6)
    public String getPostcode() {
        return this.postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    @Column(name = "address", nullable = false, length = 200)
    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

}
